#include<iostream>
using namespace std;
int main(){
	int m=0;
	int i;
	char s[100]="  I like ,,,.. C++ programming! ";
	char st[100]={0};
	int n=0;
	for(i=0;s[i]!='\0';i++){
		if(s[i]!=' '&&s[i]!=','&&s[i]!='.'&&s[i]!='?'&&s[i]!='!'){
			st[n]=s[i];
			n++;
			if(s[i+1]==' '||s[i+1]==','||s[i+1]=='.'||s[i+1]=='?'||s[i+1]=='!')
			st[n++]='\n';
		}
	}
	for(i =0;i<100;i++){
		if(st[i]!='\0')
		cout<<st[i];
	}
	return 0;
}
